//
//  HYHomeVideoModel.m
//  XPlayer
//
//  Created by liguoqing on 2023/8/9.
//

#import "HYHomeVideoModel.h"

@implementation HYHomeVideoModel

+ (NSDictionary *)JSONKeyPathsByPropertyKey{
    return nil;
}

#pragma mark - LKDBHelper

+ (NSString *)getTableName{
    return @"VIDEOLIST";
}

+ (NSString *)getPrimaryKey{
    return @"_id";
}

#pragma mark - DB Mapping

//! 数据库字段映射，key为数据库字段，value为属性
+ (NSDictionary *)tableMapping{
    return @{
        @"_id": @"_id",
        @"folderIdentification":@"folderIdentification",
        @"videoTitle":@"videoTitle",
        @"videoUrl":@"videoUrl",
        @"videoDuration":@"videoDuration",
        @"imageName":@"imageName",
        @"videoSize":@"videoSize",
        @"createDate":@"createDate",
        @"importDate":@"importDate",
        @"isAudio":@"isAudio",
        @"isLocal":@"isLocal",
        @"isLock":@"isLock",
        @"isSuperPrivate":@"isSuperPrivate"
    };
}

+ (void)clearAllData
{
    [self deleteWithWhere:@"1"];
}


@end
